.ui-grid-menu-button {
  z-index: 2;
  position: fixed;
  right: 0;  
  background: @headerBackgroundColor;
  border: @gridBorderWidth solid @borderColor;
  cursor: pointer;
  min-height: 27px;
  font-weight: normal;
}

.ui-grid-menu-button .ui-grid-icon-container {
  margin-top: 3px;
}

.ui-grid-menu-button .ui-grid-menu {
  right: 0;
}

.ui-grid-menu {
  z-index: 2; // So it shows up over grid canvas
  position: absolute;
  overflow: hidden;
  padding: 0 10px 20px 10px;
  cursor: pointer;
  box-sizing: content-box;
}

.ui-grid-menu .ui-grid-menu-inner {
  background: @headerBackgroundColor;
  border: @gridBorderWidth solid @borderColor;
  position: relative;
  white-space: nowrap;

  .rounded(@gridBorderRadius);
  .box-shadow(e("0 10px 20px rgba(0, 0, 0, 0.2), inset 0 12px 12px -14px rgba(0, 0, 0, 0.2)"));
}

.ui-grid-menu .ui-grid-menu-inner ul {
  margin: 0;
  padding: 0;
  list-style-type: none;

  li {
    padding: 8px;
    cursor: pointer;

    // Show a shadow when hovering over a menu item
    &:hover {
      // background-color: negation(@headerBackgroundColor, #fff);
      .inner-shadow(@vertical: 0, @blur: 14px, @alpha: 0.2);
    }

    &.ui-grid-menu-item-active {
      .inner-shadow(@vertical: 0, @blur: 14px, @alpha: 0.2);
      background-color: @selectedColor;
    }
  }

  // Show a bottom border on all but the last menu item
  li:not(:last-child) {
    border-bottom: @gridBorderWidth solid @borderColor;
  }
}
